package net.jjjshop.common.service.lbt;


import com.baomidou.mybatisplus.extension.service.IService;
import net.jjjshop.common.entity.lbt.LbLineUp;

import java.util.Date;

/**
 * 用户公排 业务接口

 */
public interface LbLineUpService extends IService<LbLineUp> {

    /**
     * 查询当前收益公排
     * @return
     */
    LbLineUp getStatus1(Integer pid);

    /**
     * 查询下一个公排用户
     * @return
     */
    LbLineUp setUpOrder(Integer pid);


    /**
     * 随机公排
     * @return
     */
    LbLineUp getAutoUpOrder();


    Integer pdNum(Date time,Integer pid);

    Integer getCount(LbLineUp lbLineUp);

    /**
     * 查询用户在公排数量
     * @return
     */
    Integer gpNum(Integer uid,Integer shopId);

    /**
     * 查询店铺公排数量
     * @param pid
     * @return
     */
    Integer getLineNum(Integer pid);
}

